package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 单字段对象 sys_option
 *
 * @author theme
 * @date 2020-05-27
 */
public class SysOption extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long optionId;

    /**
     * 名称
     */
    @ApiModelProperty(name = "名称")
    private String name;

    /**
     * 是否必填
     */
    @ApiModelProperty(name = "是否必填")
    private String need;

    /**
     * 帐号状态（0正常 1停用）
     */
    @ApiModelProperty(name = "帐号状态")
    private String status;

    /**
     * 帐号状态（0正常 1停用）
     */
    @ApiModelProperty(name = "帐号状态")
    private Long sort;
    /**
     * 判断是什么输入框（1输入框 2单选框radio 3下拉 4多选框checkbox）
     */
    @ApiModelProperty(name = "判断是什么输入框")
    private String type;

    /**
     * 数据字典的类型
     */
    @ApiModelProperty(name = "数据字典的类型")
    private String dictType;

    private String value;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public void setOptionId(Long optionId) {
        this.optionId = optionId;
    }

    public Long getOptionId() {
        return optionId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setNeed(String need) {
        this.need = need;
    }

    public String getNeed() {
        return need;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("optionId" , getOptionId())
                .append("name" , getName())
                .append("need" , getNeed())
                .append("status" , getStatus())
                .append("sort" , getSort())
                .append("createBy" , getCreateBy())
                .append("createTime" , getCreateTime())
                .append("updateBy" , getUpdateBy())
                .append("updateTime" , getUpdateTime())
                .toString();
    }
}
